package com.sqber.nacos.nacosSpringBootDemo.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SomeConf {

    @Value("${someConf.orgId}")
    @NacosValue(value = "${someConf.orgId}", autoRefreshed = true)
    private String orgId;

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
}
